package com.rainng.coursesystem.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;


@TableName("member_event")
@Data
public class MemberEventEntity {
    public static final String ID = "me_id";
    public static final String MEMBER_ID = "me_member_id";
    public static final String EVENT_ID = "me_event_id";
    public static final String BID_PRICE= "me_bid_price";
    public static final String SHOULD_PRICE = "me_should_price";
    public static final String BUDGET = "me_budget";

    @NotNull
    @TableId(value = ID, type = IdType.AUTO)
    private Integer id;

    @NotNull(message = "必须选择团员")
    @TableField(MEMBER_ID)
    private Integer memberId;

    @NotNull(message = "必须选择项目")
    @TableField(EVENT_ID)
    private Integer eventId;

    @Range(min = 0, max = 10000, message = "分数必须在0-10000之间")
    @TableField(value = BID_PRICE, updateStrategy = FieldStrategy.IGNORED)
    private Integer bidPrice;

    @Range(min = 0, max = 10000, message = "分数必须在0-10000之间")
    @TableField(value = SHOULD_PRICE, updateStrategy = FieldStrategy.IGNORED)
    private Integer shouldPrice;

    @Range(min = 0, max = 10000, message = "分数必须在0-10000之间")
    @TableField(value = BUDGET, updateStrategy = FieldStrategy.IGNORED)
    private Integer budget;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getMemberId() {
		return memberId;
	}

	public void setMemberId(Integer memberId) {
		this.memberId = memberId;
	}

	public Integer getEventId() {
		return eventId;
	}

	public void setEventId(Integer eventId) {
		this.eventId = eventId;
	}

	public Integer getBidPrice() {
		return bidPrice;
	}

	public void setBidPrice(Integer bidPrice) {
		this.bidPrice = bidPrice;
	}

	public Integer getShouldPrice() {
		return shouldPrice;
	}

	public void setShouldPrice(Integer shouldPrice) {
		this.shouldPrice = shouldPrice;
	}


	public void setBudget(Integer budget) {
		this.budget = budget;
	}

	public Integer getBudget() {
		return budget;
	}

    
}
